-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asynchronously resolve a name to multiple address objects #548
Conversation
Current coverage is 91.15% (diff: 100%)@@ trunk #548 diff @@
==========================================
Files 834 836 +2
Lines 145653 145992 +339
Methods 0 0
Messages 0 0
Branches 12913 12930 +17
==========================================
+ Hits 132735 133080 +345
+ Misses 10664 10660 -4
+ Partials 2254 2252 -2
|
and hey, what do you know, it's dead code that's unnecessary.
I am bumping into this issue twisted/twistedchecker#44 while writing the docstrings for this. |
acquiesce to the vagaries of reactor startup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls look at these things and merge when you are happy, seems good to me
|
||
from __future__ import division, absolute_import | ||
|
||
__metaclass__ = type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid accidentally declaring an old-style class.
@return: The resolution in progress. | ||
@rtype: L{IResolutionReceiver} | ||
""" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems like too many newlines
|
||
from __future__ import division, absolute_import | ||
|
||
__metaclass__ = type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, what's this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above. It avoids accidentally declaring an old-style class in py2.
Why not add it to the list in t.test.test_nooldstyle or whatever?
…On 26 Nov 2016 18:09, "Glyph" ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/twisted/internet/test/test_resolver.py
<#548>:
> @@ -0,0 +1,559 @@
+# Copyright (c) Twisted Matrix Laboratories.
+# See LICENSE for details.
+
+"""
+Tests for implementations of L{IHostnameResolver} and their interactions with
+reactor implementations.
+"""
+
+from __future__ import division, absolute_import
+
+__metaclass__ = type
Same as above. It avoids accidentally declaring an old-style class in py2.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#548>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADJ2XDT1hbFQE0CfjZ_309Dj_07-kAS8ks5rB9sugaJpZM4KDvyY>
.
|
It's kind of a separate issue. Although that would also be a good thing. This list in |
https://twistedmatrix.com/trac/ticket/4362